﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.IO;
using Swd05.SH.Interfaces;
using NUnit.Framework;


namespace Swd05.SH
{
	[TestFixture(Description = "Testsuite für die Fassade")]
	public class FacadeFixture
	{

		[SetUp]
		public void TestSetup()
		{
		}
		[TearDown]
		public void TestTearDown()
		{
		}
		[TestFixtureSetUp]
		public void TestFixtureSetUp()
		{
		}
		[TestFixtureTearDown]
		public void TestFixtureTearDown()
		{
		}
		#region Methods
		[Test]
		public void InvokeFileFactory()
		{
			IScriptFactory f = null;
			
			f = Facade.Instance.Create( Bll.Source.File, String.Empty );
			
			Assert.IsNotNull( f, "Factory could not be loaded!" );
		}
		[Test]
		public void InvokeRamFactory()
		{
			IScriptFactory f = null;

			f = Facade.Instance.Create(Bll.Source.Ram, String.Empty);

			Assert.IsNotNull(f, "Factory could not be loaded!");
		}
		[Test]
		public void InvokeSqlFactory()
		{
			IScriptFactory f = null;

			f = Facade.Instance.Create(Bll.Source.Sql, String.Empty);

			Assert.IsNotNull(f, "Factory could not be loaded!");
		}
		#endregion
		#region Properties
		#endregion
	}
}
